package me.hetong.caigou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 着法
 *
 * @author hetong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Zhao {
    private Integer idx;
    private Integer x1;
    private Integer y1;
    private Integer x2;
    private Integer y2;
    private Boolean red;
    private String fen1;// 在走这一步之前的局面
    private String fen2;// 在走这一步之前的局面
    private String move;// 实战着法
    private String name;// 实战着法名称
    private Integer score;// 得分
    private Integer scoreUp;// 这一着相对于上一着分数的变化
    private String content;
    private Map<String, Zhao> extMap;// 可选着法列表
    private Integer mate;// 几步杀

    public Zhao(int x1, int y1, int x2, int y2) {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }
}